package com.zjw.zy.bean;

import androidx.annotation.NonNull;

import com.zjw.zy.smi.ICopy;

import java.util.Objects;

/**
 * @author ：zhong.jw
 * @date ：Created in 2022/10/27 9:34
 */
public final class ImageInfo implements ICopy<ImageInfo> {

    private String path = "";

    public ImageInfo(String path) {
        this.path = path;
    }

    public String getPath() {
        return path;
    }

    @NonNull
    @Override
    public ImageInfo copy() {
        return new ImageInfo(path);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ImageInfo imageInfo = (ImageInfo) o;
        return Objects.equals(path, imageInfo.path);
    }

    @Override
    public int hashCode() {
        return Objects.hash(path);
    }
}
